package com.annual.system.domain;

import java.math.BigDecimal;

import java.time.LocalDateTime;
import java.io.Serializable;
import javax.validation.constraints.*;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.extension.activerecord.Model;
/**
* <p>
* 业务表
* </p>
*
* @author ywb
* @since 2024-12-02
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_enterprise_business")
@ApiModel(value="EnterpriseBusiness对象", description="客户管理")
public class EnterpriseBusiness  extends Model<EnterpriseBusiness>{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message="主键不能为空")
    private Long id;

    @ApiModelProperty(value = "业务类型（1：执照年报 2：执照注销 3：信用修复）")
    @NotNull(message="业务类型（1：执照年报 2：执照注销 3：信用修复）不能为空")
    private Integer type;

    @ApiModelProperty(value = "主体名称")
    @NotBlank(message="主体名称不能为空")
    private String enterpriseName;

    @ApiModelProperty(value = "信用代码")
    @NotBlank(message="信用代码不能为空")
    private String creditCode;

    @ApiModelProperty(value = "法人姓名")
    private String legalPersonName;

    @ApiModelProperty(value = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "年营业额")
    private BigDecimal turnover;

    @ApiModelProperty(value = "纳税额")
    private BigDecimal ratal;

    @ApiModelProperty(value = "提交人userid")
    private Long userId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
